<%--
  Created by IntelliJ IDEA.
  User: DYS
  Date: 2022/1/12
  Time: 17:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<form action="/dcxtmv/cp/cpAdd.do" method="post" enctype="multipart/form-data">
    <table border="1px" style="width: 500px">
        <tr>
            <td>菜品名称：</td>
            <td><input type="text" name="cpmc"></td>
        </tr>
        <tr>
            <td>原料：</td>
            <td><input type="text" name="yl"></td>
        </tr>
        <tr>
            <td>单价：</td>
            <td><input type="text" name="dj"></td>
        </tr>
        <tr>
            <td>说明：</td>
            <td>
                <textarea name="shm" cols="30" rows="3"></textarea>
            </td>
        </tr>
        <tr>
            <td>菜品类别：</td>
            <td>
                <select name="cplb.id" >
                    <option>--请选择类别--</option>
                    <c:forEach items="${lblist}" var="lb">
                        <option value="${lb.id}" >${lb.id}号${lb.cpname}</option>
                    </c:forEach>
                </select>
            </td>
        </tr>
        <tr>
            <td>图片上传</td>
            <td> <input type="file" name="file"></td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" value="添加">
            </td>
        </tr>
    </table>
</form>

</body>
</html>